﻿using Orther.Model.param;
using Orther.Service.Miyao;
using Project.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace Orther.BLL.Miyao
{
    public class MxWeixiuBLL
    {
        private MxWeixiuService mxWeixiuService = new MxWeixiuService();
        public async Task<TData<List<qx_mx_weixiu>>> GetList(MxWeixiuParam param, int? topNum)
        {
            TData<List<qx_mx_weixiu>> obj = new TData<List<qx_mx_weixiu>>();
            if (param.nrId == Guid.Parse("00000000-0000-0000-0000-000000000000"))
            {
                obj.Data = new List<qx_mx_weixiu>();
            }
            else
            {
                obj.Data = await mxWeixiuService.GetList(param, topNum);
            }
            obj.Tag = 1;
            return obj;
        }
    }
}
